<template>
  <div>
    <!-- 导航栏部分 -->
    <el-menu class="el-menu-demo" mode="horizontal">
      <el-submenu index="2">
        <template slot="title"><el-avatar></el-avatar></template>
        <el-menu-item index="2-2">个人信息</el-menu-item>
        <el-menu-item index="2-1">设置</el-menu-item>
        <el-menu-item index="2-1">帮助</el-menu-item>
        <el-menu-item index="2-3">退出</el-menu-item>
      </el-submenu>
    </el-menu>

    <!--  -->
    <el-image
      @mouseover="imageTitle = !imageTitle"
      style="width: 200px; height: 200px; border-radius: 50%"
      src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
    >
    </el-image>
    <div v-show="imageTitle" @mouseleave="imageTitle = !imageTitle" class="imgTitle">
      更改图像
    </div>

  </div> 
</template>

<script>
export default {
  data() {
    return {
      imageTitle: false,
    };
  },
  method: {},
};
</script>

<style scoped lang="less">
.imgTitle {
  width: 200px;
  height: 200px;
  border: 1px solid black;
  position: relative;
  top: -205px;
  line-height: 200px;
  text-align: center;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}
</style>